package com.jhl.seckill.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

@RestController
public class MonoController {
    @GetMapping("/hello")
//    相当于返回了String类型
    public Mono<String> hello() {

        return Mono.just("hello");
    }
}
